<?php /* Smarty version 2.6.13, created on 2006-11-26 23:27:03
         compiled from file:/home2/10zaru/10zabiz/www/include/plugins/newsline/tpl/newslineedit.tpl.php */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'cycle', 'file:/home2/10zaru/10zabiz/www/include/plugins/newsline/tpl/newslineedit.tpl.php', 9, false),array('modifier', 'date_format', 'file:/home2/10zaru/10zabiz/www/include/plugins/newsline/tpl/newslineedit.tpl.php', 15, false),)), $this); ?>
<div class="title"><?php if ($this->_tpl_vars['id'] != 0): ?>Edit news<?php else: ?>Add News<?php endif; ?></div>
<br /><br />

<form action="<?php echo $this->_tpl_vars['url']; ?>
" method="post">
<input type="hidden" name="action" value="<?php if ($this->_tpl_vars['id'] != 0): ?>doSubmitEditNewsline<?php else: ?>doSubmitAddNewsline<?php endif; ?>" />
<input type="hidden" name="id" value="<?php echo $this->_tpl_vars['id']; ?>
" />

<table border=0>
<tr class="<?php echo smarty_function_cycle(array('values' => "dark,light"), $this);?>
">
	<td style="padding-right:5px; text-align:right;">News ID</td>
	<td><?php echo $this->_tpl_vars['news']['id_news']; ?>
</td>
</tr>
<tr class="<?php echo smarty_function_cycle(array('values' => "dark,light"), $this);?>
">
	<td style="padding-right:5px; text-align:right;">Date Create</td>
	<td><?php echo ((is_array($_tmp=$this->_tpl_vars['news']['date_create'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%m/%d/%Y %I:%M %p") : smarty_modifier_date_format($_tmp, "%m/%d/%Y %I:%M %p")); ?>
</td>
</tr>
<tr class="<?php echo smarty_function_cycle(array('values' => "dark,light"), $this);?>
">
	<td style="padding-right:5px; text-align:right;">Title:</td>
	<td><input type="text" name="title" value="<?php echo $this->_tpl_vars['news']['title']; ?>
" class="input_text" style="width:500px "/></td>
</tr>
<tr class="<?php echo smarty_function_cycle(array('values' => "dark,light"), $this);?>
">
	<td style="padding-right:5px; text-align:right;" valign="top">Short Description:</td>
	<td><textarea cols="100" rows="5" name="short_description" class="input_text"><?php echo $this->_tpl_vars['news']['short_description']; ?>
</textarea></td>
</tr>
<tr class="<?php echo smarty_function_cycle(array('values' => "dark,light"), $this);?>
">
	<td style="padding-right:5px; text-align:right;" valign="top">Text News:</td>
	<td>
	<?php echo $this->_tpl_vars['texteditor']; ?>

		</td>
</tr>
<tr class="<?php echo smarty_function_cycle(array('values' => "dark,light"), $this);?>
">
	<td style="padding-right:5px; text-align:right;">Author:</td>
	<td><input type="text" name="author" value="<?php echo $this->_tpl_vars['news']['author']; ?>
" class="input_text" style="width:500px "/></td>
</tr>
<tr class="<?php echo smarty_function_cycle(array('values' => "dark,light"), $this);?>
">
	<td style="padding-right:5px; text-align:right;">E-mail:</td>
	<td><input type="text" name="email" value="<?php echo $this->_tpl_vars['news']['email']; ?>
" class="input_text" style="width:500px "/></td>
</tr>
<tr class="<?php echo smarty_function_cycle(array('values' => "dark,light"), $this);?>
">
	<td style="padding-right:5px; text-align:right;">URL News:</td>
	<td><input type="text" name="url_news" value="<?php echo $this->_tpl_vars['news']['url_news']; ?>
" class="input_text" style="width:500px "/></td>
</tr>
<tr class="<?php echo smarty_function_cycle(array('values' => "dark,light"), $this);?>
">
	<td style="padding-right:5px; text-align:right;">Active:</td>
	<td><input type="checkbox" name="active" <?php if ($this->_tpl_vars['news']['active']): ?> checked <?php endif; ?> class="input_text" /></td>
</tr>
<tr class="<?php echo smarty_function_cycle(array('values' => "dark,light"), $this);?>
">
	<td style="padding-right:5px; text-align:right;">&nbsp;</td>
	<td>
		<input type="submit" value=" Submit " class="button" />
		<input type="button" value=" Cancel " class="button" onClick="javascript : window.location.href = '?path=newslinelist'" />
	</td>
</tr>
</form>

</table>